package com.xry.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xry.common.bean.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 86152
* @description 针对表【user】的数据库操作Service
* @createDate 2025-09-04 19:58:40
*/
public interface UserService extends IService<User> {
    User getUserById(Integer id);
    User getUserByUserName(String username);
    boolean updateUserById(User user);
    boolean deleteUserById(Integer id);
    boolean addUser(User user);
    List<User> getAll();
    IPage<User> getPage(User user, IPage<User> page);
    User getByEmail(String email);
}
